<?php
if ($_REQUEST) {
    $content = $_REQUEST['content'];
    $id = $_REQUEST['id'];
    $username = $_REQUEST['username'];
    require_once 'dbconnect.php';
    $sql = "INSERT INTO posts (who, content, what) VALUES ('$username', '$content', '$id')";
    mysql_query($sql) or die(mysql_error());
}
?>